package lesson4;

public class Demo2 {
    public static void main(String[] args) {
        Car car = new Car("豫And250");
        Driver driver1 = new Driver("张三",20,car);
        Driver driver2 = new Driver(driver1);
        System.out.println(driver1 == driver2);
        driver1.getCar().setCardNum("豫VD1011");
        //
        System.out.println(driver2.getCar().getCardNum());
    }
}